Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix(GraphQL): Fix Execution Trace for Add and Update Mutations #7656

Merged
merged 3 commits into from
Mar 26, 2021

Conversation

vmrajas
Copy link
Contributor

@vmrajas vmrajas commented Mar 26, 2021

Motivation:
After the recent refactor of Mutation Rewriting, now there is an extra execution of existenceQuery made in case of Add and Update Mutations. These also need to be accounted for in Execution Trace. This PR accomplishes this. It also makes a minor refactoring of a function in mutation_rewriter.go

Testing:
Existing Unit and e2e tests. No tests added.

Fixes GRAPHQL-1129


This change is Reviewable

@github-actions github-actions bot added the area/graphql Issues related to GraphQL support on Dgraph. label Mar 26, 2021
@vmrajas vmrajas merged commit ba8f5da into release/v21.03 Mar 26, 2021
@vmrajas vmrajas deleted the rajas/GRAPHQL-1129 branch March 26, 2021 13:59
vmrajas added a commit that referenced this pull request Mar 26, 2021
* Remove unused function

* Add tracing for existence query execution

* Fix tests

(cherry picked from commit ba8f5da)
vmrajas added a commit that referenced this pull request Mar 26, 2021
#7658)

* Remove unused function

* Add tracing for existence query execution

* Fix tests

(cherry picked from commit ba8f5da)
aman-bansal pushed a commit that referenced this pull request Apr 8, 2021
* Remove unused function

* Add tracing for existence query execution

* Fix tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/graphql Issues related to GraphQL support on Dgraph.
Development

Successfully merging this pull request may close these issues.

2 participants